﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IJob {

        /// <summary>
        /// Insert new JobEnt
        /// </summary>
        /// <param name="item">JobEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(JobEnt item);
        /// <summary>
        /// Update JobEnt
        /// </summary>
        /// <param name="item">JobEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(JobEnt item);
        /// <summary>
        /// Delete a JobEnt
        /// </summary>
        /// <param name="iD">ID of JobEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all JobEnt
        /// </summary>
        /// <returns>return a list of JobEnt (empty list if no JobEnt exists)</returns>
        List<JobEnt> GetAll();
    }
}
